import React, {Component} from 'react';

class Topbar extends Component {
    state = {}

    render() {
        let style = {
            topBox: {
                width: '100%',
                height: '40px',
                background: '#e5e5e5',
                display: 'flex',
                justifyContent: 'space-around',
                alignItems:'center'
            }
        }
        return (
            <div>
                <div style={style.topBox}>
                    <button>返回</button>
                    <span>xxxxx</span>
                    <button onClick={()=>{
                        this.props.myEvent()
                    }}>我的</button>
                </div>
            </div>
        );
    }
}

export default Topbar;
